<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: ZJM
  Date: 2024/4/18
  Time: 22:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Title</title>
</head>
<body>
<%
request.setAttribute("emptyNull",null);
request.setAttribute("emptyStr","");
request.setAttribute("emptyArr",new Object[]{});
request.setAttribute("emptyList",new ArrayList<>());
request.setAttribute("emptyMap",new HashMap<>());

Map<String, Object> map = new HashMap<>();
map.put("aa.shd","vaesssss");
%>
${10==10}或者${10 eq 10}<br>
${10!=10}或者${10 ne 10}<br>
${10<10}或者${10 lt 10}<br>

<%--empty运算--%>
${empty emptyNull}<br>
${empty emptyStr}<br>
${empty emptyArr}<br>
${empty emptyList}<br>
${empty emptyMap}<br>

<%--**三元运算符**--%>
${12 == 12?"ZJM":"TEST"}

<%--[]中括号运算map集合的key--%>
${map['aa.shd']}


</body>
</html>
